package cn.tianyigps.tianyigpspublic.constants;

/**
 * Created with IDEA
 * author:guibin.cui
 * Date:2018/5/15
 * Time:14:38
 * PHP接口地址常量类
 */
public class UrlConstant {

    /*测试服接口*/
   /* // 规则和集合
    public static final String RULE_LIST_URL = "http://test.mars.yikong.tianyigps.com/driver-rule/list/{equipmentId}/{type}";
    // 围栏查找接口
    public static final String FENCE_URL = "http://test.mars.yikong.tianyigps.com/driver-rule/map-data/{id}";
    // 报警接口
    public static final String ALARM_URL = "http://test.mars.yikong.tianyigps.com/driver-rule/warning";
    // 设备id查询某个车下的所有的设备的接口
    public static final String CAR_ALLEQUIPMENT_URL = "http://test.mars.yikong.tianyigps.com/driver-rule/other/{equipmentId}";
    // 根据设备ID获取常驻点数据信息接口
    public static final String RESIDENTPOINT_BY_EQUIPMENTID = "http://test.mars.yikong.tianyigps.com/driver-rule/car-rule/{equipmentId}";

    public static final String LOAD_EVENT_URL = "http://test.mars.yikong.tianyigps.com/ts-driver-config/save-event";*/

    public static final String LOAD_EVENT_URL = "http://test.mars.yikong.tianyigps.com/ts-driver-config/save-event";


    /*公用接口*/
    // 清洗服务内部分发任务接口
    public static final String DO_CLEAN_URL = "http://clean/task?start={start}&end={end}";
    //spring cloud 测试接口
    public static final String TEST_URL = "http://clean/test?start={start}&end={end}";
    /************************************************************ 第三方API **************************************************************************************/
    // 根据基站数据获取定位信息接口
    public static final String LOCATION_BY_BASESTATION_URL = "http://api.haoservice.com/api/getlbs?mcc=460&mnc=0&cell_id={cell_id}&lac={lac}&type=2&key={key}";
    // 根据wifi数据获取定位信息接口
    public static final String LOCATION_BY_WIFI_URL = "http://apilocate.amap.com/position?key={key}&accesstype=1&macs={macs}";
    //高德地址解析接口
    public static  final  String AMAP_GEOCODE = "https://restapi.amap.com/v3/geocode/regeo?key=a041587e062315e6eaa62dd1f3fcd73d&location={lng},{lat}";
    //百度地址解析接口
    //VcegnSQh87MGVPRe52W5vB1q8KjXjG9H 甘宇
    //  企业
    //Qzw0piVh7qFDE2FPMZqkjtGi9h9qhUGI 程腾
    //gdqjDYv0uD9KHUnKMb1G2m6g05rrFZrn 赵鑫
    //ADqazQCk8WWLM9NLtXf20HXcOlo6sUB9 优装汇
    public static  final  String BAIDU_GEOCODE = "http://api.map.baidu.com/geocoder/v2/?location={lat},{lng}&output=json&pois=0&ak=ADqazQCk8WWLM9NLtXf20HXcOlo6sUB9";


    /*正式服接口*/
    // 规则和集合
    public static final String RULE_LIST_URL = "http://mars.yikong.tianyigps.com/driver-rule/list/{equipmentId}/{type}";
    // 围栏查找接口
    public static final String FENCE_URL = "http://mars.yikong.tianyigps.com/driver-rule/map-data/{id}";
    // 报警接口
    public static final String ALARM_URL = "http://mars.yikong.tianyigps.com/driver-rule/warning";
    // 设备id查询某个车下的所有的设备的接口
    public static final String CAR_ALLEQUIPMENT_URL = "http://mars.yikong.tianyigps.com/driver-rule/other/{equipmentId}";
    // 根据设备ID获取常驻点数据信息接口
    public static final String RESIDENTPOINT_BY_EQUIPMENTID = "http://mars.yikong.tianyigps.com/driver-rule/car-rule/{equipmentId}";
    // 推送载重设备事件接口
//    public static final String LOAD_EVENT_URL = "http://mars.yikong.tianyigps.com/ts-driver-config/save-event";
}
